package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TZxtBlackListDao;
import com.qianli.cashmama.trade.entity.TZxtBlackListEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* User: zsp
* Date: 2020-02-18
* Time: 17:22:19.105
*/

@Repository
public class TZxtBlackListDaoImpl extends AbstractBaseMapper<TZxtBlackListEntity> implements TZxtBlackListDao {
    @Override
    public TZxtBlackListEntity queryLastRecord() {
        return getSqlSession().selectOne(getStatement("queryLastRecord"));
    }

    @Override
    public List<TZxtBlackListEntity> selectWaitingOrderByLimit(int  pageSize) {
        Map<String, Object> map = new HashMap<>();
        map.put("pageSize", pageSize);
        return getSqlSession().selectList(getStatement("selectWaitingOrderByLimit"), map);
    }
}